package 命令模式例子;

/**
 * Created by lilei on 2016/3/22.
 */
public class StopCommand implements Command {
    private MusicPlayer musicPlayer;

    public StopCommand(MusicPlayer musicPlayer) {
        this.musicPlayer = musicPlayer;
    }

    @Override
    public void excute() {
        musicPlayer.stop();
    }
}
